package com.huishu.order.pojo.vo;

import com.huishu.order.pojo.model.OrderDeliveryDO;
import com.huishu.order.pojo.model.OrderItemDO;
import lombok.Data;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * @ClassName：OrderDetailedVO
 * @Author: ljj
 * @Date: 2023/4/14 9:36
 */
@Data
public class OrderDetailedVO {

    private Long id;

    private String orderSn;

    private Long userId;

    /**
     * 收货人姓名
     */
    private String receiverName;

    /**
     * 收货人电话
     */
    private String receiverPhone;

    /**
     * 收货人邮编
     */
    private String receiverPostCode;

    /**
     * 省份/直辖市
     */
    private String receiverProvince;

    /**
     * 城市
     */
    private String receiverCity;

    /**
     * 区
     */
    private String receiverRegion;

    /**
     * 详细地址
     */
    private String receiverDetailAddress;

    /**
     * 支付状态：0->未支付；1->已支付 2->已超时
     */
    private Integer payStatus;

    /**
     * 订单状态：1->待发货；2->已发货；3->已完成；4->已关闭；5->无效订单
     */
    private Integer orderStatus;


    /**
     * 创建时间
     */
    private Date createdDate;

    /**
     * 订单总金额
     */
    private BigDecimal totalAmount;

    /**
     * 应付金额（实际支付金额）
     */
    private BigDecimal payAmount;

    /**
     * 运费金额
     */
    private BigDecimal freightAmount;

    /**
     * 促销优化金额（促销价、满减、阶梯价）
     */
    private BigDecimal promotionAmount;

    /**
     * 积分抵扣金额
     */
    private BigDecimal integrationAmount;

    /**
     * 优惠券抵扣金额
     */
    private BigDecimal couponAmount;

    /**
     * 订单备注
     */
    private String note;

    /**
     * 福利码
     */
    private String welfareCode;

    /**
     * 商品
     */
    private List<OrderItemDO> orderItems = new ArrayList<>();

    /**
     * 物流信息
     */
    private List<OrderDeliveryDO> orderDeliveryDO = new ArrayList<>();

}
